package com.googlecode.dgwt.client.dojo.string;

import com.googlecode.dgwt.client.dojo.core.JsArray;

/**
 * Represents the result of a native Regular Expression
 * 
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public class RegExpResult extends JsArray<String> {

    
    protected RegExpResult(){
        
    }

    /**
     * Gets the found index of current match
     * 
     * @return number
     */
    public native final int index() /*-{
        return this.index;
    }-*/;

    /**
     * Gets the input string used to process this result
     * 
     * @return string
     */
    public native final String input() /*-{
        return this.index;
    }-*/;

}
